import Vue from 'vue'
import config from '@/config'
// easyui
import 'vx-easyui/dist/themes/gray/easyui.css'
import 'vx-easyui/dist/themes/icon.css'
import 'vx-easyui/dist/themes/vue.css'
import './styles/common.scss'
import './styles/icon.scss'
import EasyUI from 'vx-easyui'
import lang from 'vx-easyui/dist/locale/easyui-lang-zh_CN'

// vue-m-message
import Message from 'vue-m-message'

import importDirective from '@/directive'

import App from './App.vue'
import router from './router/index'
import store from './store/index'

Vue.use(EasyUI, { locale: lang })
Vue.use(Message, { name: 'msg' })
/**
 * @description 生产环境关掉提示
 */
Vue.config.productionTip = false
/**
 * @description 全局注册应用配置
 */
Vue.prototype.$config = config

importDirective(Vue)

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
